package com.itheima.output;

import java.io.*;

public class OutputDemo07 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("C:\\Users\\Cloudy\\Pictures\\Saved Pictures\\timg.jpg"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("day12_file&字节流\\timg.jpg"));

        byte[] bys = new byte[1024];
        int len;

        while ((len = bis.read(bys)) != -1) {
            bos.write(bys, 0, len);
        }
        bos.close();
        bis.close();
    }
}
